import request from '@/utils/request'

//获取所有的平台账号
export function platformApi(params) {
  return request({
    url: '/admin/mszs/platform/pageList',
    method: 'get',
    params
  })
}

//新增平台账号
export function addPlatformApi(data) {
  return request({
    url: '/admin/mszs/platform/insert',
    method: 'post',
    data
  })
}

//根据 ID 查询平台账号
export function getPlatformApi(params) {
  return request({
    url: '/admin/mszs/platform/load',
    method: 'get',
    params
  })
}

//删除平台账号
export function delPlatformApi(params) {
  return request({
    url: '/admin/mszs/platform/delete',
    method: 'get',
    params
  })
}

//修改平台账号
export function editPlatformApi(data) {
  return request({
    url: '/admin/mszs/platform/update',
    method: 'POST',
    data
  })
}